package iohuan_;

import java.io.*;

public class Copy_6_txt {

    public static void main(String[] args) throws   Exception{
        InputStream inout=new FileInputStream("D:\\java2018\\a.txt");
        BufferedInputStream in=new BufferedInputStream(inout);
        OutputStream outin=new FileOutputStream("C:\\excel.txt");

        BufferedOutputStream out=new BufferedOutputStream(outin);
        int len=0;
        byte by[]=new byte[1024];
        while ((len=inout.read())!=-1)
        {
            outin.write(by,0,len);
        }
outin.close();
        inout.close();


    }



}
